package com.ttxz.sample.db

import androidx.room.Database
import androidx.room.DatabaseConfiguration
import androidx.room.InvalidationTracker
import androidx.room.RoomDatabase
import androidx.sqlite.db.SupportSQLiteOpenHelper
import com.ttxz.sample.db.dao.ArticleDao
import com.ttxz.sample.db.dao.BannerDao
import com.ttxz.sample.db.entity.ArticleListEntity
import com.ttxz.sample.db.entity.BannerEntity

@Database(version = 1, entities = [BannerEntity::class,ArticleListEntity::class])
abstract class MyDataBase: RoomDatabase() {

    abstract fun articleDao():ArticleDao
    abstract fun bannerDao():BannerDao

}